package com.qiaoas.springbootddd.Domain.DomainObject.Impl;

import com.qiaoas.springbootddd.Domain.DomainObject.User;
import com.qiaoas.springbootddd.Infrastructure.Domain.DomainObject.BaseBo;

public class UserImp extends BaseBo implements User {

    //region 字段
    private UserEntity SelfEntity;
    //endregion

    //region 构造函数
    /**
     * 构造函数
     * @param selfEntity
     */
    public UserImp(UserEntity selfEntity) {
        this.SelfEntity = selfEntity;
    }
    //endregion

    //region get set 方法
    public int getNo() {
        return SelfEntity.getNo();
    }

    public void setNo(int no) {
        this.SelfEntity.setNo(no);
    }

    public String getName() {
        return SelfEntity.getName();
    }

    public void setName(String name) {
        this.SelfEntity.setName(name);
    }

    public int getAge() {
        return SelfEntity.getAge();
    }

    public void setAge(int age) {
        this.SelfEntity.setAge(age);
    }

    public String getCity() {
        return SelfEntity.getCity();
    }

    public void setCity(String city) {
        this.SelfEntity.setCity(city);
    }
    //endregion

    //region User 实现

    //endregion
}
